package com.myTest.sqlSession;

import com.myTest.pojo.Configuration;
import com.myTest.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object...param) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, IntrospectionException, InvocationTargetException;

    public int update(Configuration configuration,MappedStatement mappedStatement,Object...param) throws ClassNotFoundException, SQLException, IllegalAccessException, NoSuchFieldException;
}
